package com.api.syh56.shengyunhui.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.DefaultValue;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import java.lang.reflect.Array;
import java.math.BigDecimal;
import java.time.LocalDateTime;


/**
 * 专线
 */

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
@TableName("dedicated_lines")
public class DedicatedLines {
    /**
     * 专线id
     */
    @Column(name = "id",isAutoIncrement = true,isKey = true)
    Long id;

    /**
     * 运输方式
     */
    @Column(name = "transportation_type",comment = "运输方式")
    int transportationType;

    /**
     * 伙伴类型
     */
    @Column(name = "partner_type",comment = "伙伴类型")
    int partnerType;

    /**
     * 伙伴名称
     */
    @Column(name = "partner_name",comment = "伙伴名称")
    String  partnerName;

    /**
     * 办公室电话
     */
    @Column(name = "office_telephone",comment = "办公室电话")
    String  officeTelephone;

    /**
     * 联系人
     */
    @Column(name = "contact",comment = "联系人")
    String  contact;

    /**
     * 联系人电话
     */
    @Column(name = "contact_phone",comment = "联系人电话")
    String contactPhone;

    /**
     * 路线名称
     */
    @Column(name = "route_name",comment = "路线名称")
    String routeName;

    /**
     * 备注信息
     */
    @Column(name = "remark",comment = "备注信息")
    String remark;

    /**
     * 图片地址
     */
    @Column(name = "picture_url",comment = "图片地址")
    String pictureUrl;

    /**
     * 浏览器
     */
    @Column(name = "browse",comment = "浏览量")
    Integer browse;

    /**
     * 距离
     */
    @Column(name = "distance",comment = "距离")
    BigDecimal distance;

    /**
     * 目的地编号
     */
    @Column(name = "purpose_no",comment = "目的地编号")
    String purposeNo;

    /**
     * 目的地名称
     */
    @Column(name = "purpose_name",comment = "目的地名称")
    String purposeName;

    /**
     * 始发地编号
     */
    @Column(name = "origin_no",comment = "始发地编号")
    String originNo;

    /**
     * 始发地名称
     */
    @Column(name = "origin_name",comment = "始发地名称")
    String originName;

    /**
     * 出发省
     */
    @Column(name = "origin_province",comment = "出发省")
    String originProvince;

    /**
     * 出发市
     */
    @Column(name = "origin_city",comment = "出发市")
    String originCity;

    /**
     * 出发区
     */
    @Column(name = "origin_district",comment = "出发区")
    String originDistrict;

//    /**
//     * 出发省市区
//     */
//    @Column(name = "origin_pcd",comment = "出发省市区")
//    String[] originPcd;

    /**
     * 详细地址
     */
    @Column(name = "origin_detailed_address",comment = "详细地址")
    String originDetailedAddress;

//    /**
//     * 目的地省市区
//     */
//    @Column(name = "pur_pcd",comment = "目的地省市区")
//    String[] purPcd;

    /**
     * 目的地省
     */
    @Column(name = "pur_province",comment = "目的地省")
    String purProvince;

    /**
     * 目的地市
     */
    @Column(name = "pur_city",comment = "目的地市")
    String purCity;

    /**
     * 目的地区
     */
    @Column(name = "pur_district",comment = "目的地区")
    String purDistrict;

    /**
     * 目的地详细地址
     */
    @Column(name = "pur_detailed_address",comment = "目的地详细地址")
    String  purDetailedAddress;


    /**
     * 运输方式
     */
    @Column(name = "ship_type",comment = "运输方式")
    String shipType;

    /**
     * 是否是VIP
     */
    @Column(name = "is_vip",comment = "是否VIP")
    Boolean isVip;

    /**
     * 始发坐标
     */
    @Column(name = "o_location",comment = "始发坐标")
    String oLocation;

    /**
     * 目的地指标
     */
    @Column(name = "p_location",comment = "目的地坐标")
    String pLocation;

    /**
     * 公司名称
     */
    @Column(name = "corporation_name",comment = "公司名称")
    String corporationName;

    /**
     * 评分
     */
    @Column(name = "mark",comment = "评分")
    Float mark;

    /**
     * 用户id
     */
    @Column(name = "uid",comment = "用户id")
    Long uid;

    /**
     * 公司id
     */
    @Column(name = "c_id",comment = "公司id")
    Long cId;

    /**
     * 创建时间
     */
    @Column(name = "creation_time")
    @TableField(fill = FieldFill.INSERT)
    LocalDateTime creationTime;

    /**
     * 更新时间
     */
    @Column(name = "last_modification_time",comment = "")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime lastModificationTime;

    /**
     * 是否删除
     */
    @TableLogic
    @Column(name = "is_deleted")
    @DefaultValue("false")
    private Boolean isDeleted;


    @Column(name = "tenant_id")
    Integer tenantId;

    @TableField(fill = FieldFill.INSERT)
    @Column(name = "creator_user_id")
    Long creatorUserId;

    @Column(name = "time_point")
    String timePoint;
}
